unit PrintForm;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, DBModule, Vcl.ToolWin, Vcl.ComCtrls,
  frxClass, frxDBSet, frxPreview, RpDefine, frxRich, Vcl.StdCtrls, Vcl.Grids,
  Vcl.DBGrids;

type
  TfmPrintPreview = class(TForm)
    frxReport1: TfrxReport;
    frxDBDataset1: TfrxDBDataset;
    frxPreview1: TfrxPreview;
    frxDBDataset2: TfrxDBDataset;
    frxRichObject1: TfrxRichObject;
    ToolBar1: TToolBar;
    btnPrint: TToolButton;
    ToolButton1: TToolButton;
    procedure btnPrintClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  fmPrintPreview: TfmPrintPreview;

implementation

{$R *.dfm}

procedure TfmPrintPreview.btnPrintClick(Sender: TObject);
begin
  frxReport1.Print;
end;

end.
